

<div class="container">
	<div class="tabview">
		<h2 class="title fl">站内短信提醒</h2>
		<ul class="tab fr">
			<li class=on ><a href="#ajax_list" onClick="mbsimajax(APP+'/Member/ajax_message/type/0/','ajax_list');" >系统站内信息</a></li>
			<li  ><a href="#ajax_list" onClick="mbsimajax(APP+'/Member/ajax_message/type/1/','ajax_list');">个人站内信息</a></li>
			<li ><a href="#ajax_list" onclick="mbsimajax(APP+'/Member/ajax_message/type/2/','ajax_list');">我发出的信息</a></li>
		</ul>
	</div>

	<div id="ajax_list" class="content" style="display:block;">
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	mbsimajax(APP+"/Member/ajax_message/type","ajax_list");

	$(".message .chart").click(function(){
		if($(this).hasClass("unread"))
		{
			$(this).removeClass("unread");
		}
		$(this).siblings(".messageBox").toggle();
	});

});

function send_message(){
    addDialogbox("#mbsendonemsg", "发送站内信息", 10001, 505);
    $.ajax({
        url: APP + "/Member/send_message/",
        cache: false,
        success: function(msg) {
            $("#mbsendonemsg .dialogboxContent").prepend(msg);
        }
    });
}
</script>